package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.DtMapPosGeoDao;
import wqh.domain.DtMapPosGeo;
import wqh.service.DtMapPosGeoService;

import java.util.List;

/**
 * Created by devts on 2016/12/5.
 */
@Service("dtMapPosGeoService")
public class DtMapPosGeoServiceImpl implements DtMapPosGeoService {

    @Autowired
    private DtMapPosGeoDao mapPosGeoDao;

    public List<DtMapPosGeo> findAll() {
        return mapPosGeoDao.findAll();
    }

    public List<DtMapPosGeo> findByGeoId(Integer id) {
        return mapPosGeoDao.findByGeoId(id);
    }

    public List<DtMapPosGeo> findByGeoIdAndName(Integer id, String name) {
        return mapPosGeoDao.findByGeoIdAndName(id, name);
    }

    public int insert(DtMapPosGeo mapPosGeo) {
        return mapPosGeoDao.insert(mapPosGeo);
    }

    public int update(DtMapPosGeo mapPosGeo) {
        return mapPosGeoDao.update(mapPosGeo);
    }

    public int deleteById(Integer id) {
        return mapPosGeoDao.deleteById(id);
    }

    public int deleteByGeoId(Integer id) {
        return mapPosGeoDao.deleteByGeoId(id);
    }

}
